package com.tencent.mm.sdk.platformtools;

import android.os.Looper;

public class ToolsAQ {
    private static ToolsAP gPY = null;

    private static ToolsAP epX() {
        if (gPY == null) {
            gPY = new ToolsAP(Looper.getMainLooper());
        }
        return gPY;
    }

    public static void f(Runnable runnable) {
        if (runnable == null) {
            return;
        }
        epX().post(runnable);
    }

    public static boolean isMainThread() {
        return Thread.currentThread().getId() == Looper.getMainLooper().getThread().getId();
    }
}
